package com.wzx.selfuse.service;

import com.wzx.selfuse.entity.PlanCust;
import com.wzx.selfuse.entity.PlanOrder;
import com.wzx.selfuse.entity.PlanPro;
import com.wzx.selfuse.vo.PlanOrderVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface Plan_IOrderService {
    List<PlanOrderVo> getOrderList();

    //添加客户
    int addOrder(PlanOrder planOrder);

    //通过orderNumber查询订单
    PlanOrderVo getOrderByOrderNumber(String orderNumber);

    //通过custId找到custName，再查询订单
    List<PlanOrderVo> getOrderByCustName(String custId);

    //通过proId找到proName,再查询订单
    List<PlanOrderVo> getOrderByProName(String proId);

    //通过orderNumber删除订单
    int deleteOrder(String orderNumber);

    //通过orderNumber编辑订单
    int editOrder(PlanOrder planOrder);
}
